package com.kingyun.gpsinspection.purificationservice.services.som.innerservice.impl;/**
 * Created by Administrator on 2017/6/7.
 */


import com.kingyun.gpsinspection.purificationservice.dao.mapper.som.ElectronTemplateItemMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.ElectronTemplateItem;
import com.kingyun.gpsinspection.purificationservice.facade.service.som.SomElectronTemplateItemService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author 卢曼成
 * @Description 模版特性关联实现类
 * @CreateDateTime 2017-06-07 17:24
 **/
public class SomElectronTemplateItemServiceImpl implements SomElectronTemplateItemService {
    @Autowired
    private ElectronTemplateItemMapper electronTemplateItemMapper;

    /**
     * 根据模版ID查询集合
     *
     * @param etId
     * @return
     */
    @Override
    public List<ElectronTemplateItem> selectByParamList(String etId) {
        if (StringUtils.isEmpty(etId)) {
            return null;
        }
        ElectronTemplateItem eti = new ElectronTemplateItem();
        eti.setEtId(etId);
        return electronTemplateItemMapper.selectByParamList(eti);
    }
}
